package com.ssy.lingxi.system.dao;

import com.ssy.lingxi.system.entity.MemberConfigLabel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 万宁
 * @version 2.0.0
 * @date 2021-05-08
 */
@Repository
public interface MemberConfigLabelRepository extends JpaRepository<MemberConfigLabel, Long> {
    @Transactional
    void deleteByMemberConfigId(Long memberConfigId);

    List<MemberConfigLabel> findByMemberConfigId(Long memberConfigId);
}
